
package com.kingdee.eas.custom.aoyuan.aytime.bizbill.web;

import org.operamasks.faces.annotation.ManagedBean;
import org.operamasks.faces.annotation.ManagedBeanScope;

import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.MetaDataPK;
import com.kingdee.bos.waf.annotation.IBOSBizCtrl;
import com.kingdee.bos.waf.winlet.list.ListBean;
import com.kingdee.eas.framework.ICoreBase;
import com.kingdee.bos.waf.action.AbstractWebAction;
import javax.faces.event.AbortProcessingException;
import org.operamasks.faces.component.action.ActionEvent;
import com.kingdee.bos.waf.winlet.BaseBean;
import org.operamasks.faces.annotation.Accessible;
import org.operamasks.faces.annotation.Action;
import com.kingdee.eas.custom.aoyuan.aytime.bizbill.IOTBill;


public abstract class AbstractOTBillListUIBean extends com.kingdee.bos.waf.winlet.list.ListBean {


	@IBOSBizCtrl
	protected IOTBill service;

	@Accessible
	protected ActionAuditPass actionAuditPass = null;
	@Accessible
	protected ActionAuditFail actionAuditFail = null;
	@Accessible
	protected ActionSetAuditing actionSetAuditing = null;
	@Accessible
	protected ActionCloseBill actionCloseBill = null;

	public AbstractOTBillListUIBean() {
		super();
        // actionAuditPass
        this.actionAuditPass = (ActionAuditPass)com.kingdee.bos.waf.action.WebActionFactory
				.createWebAction("actionAuditPass", ActionAuditPass.class,getServiceContext());
		this.actionAuditPass.setBaseBean(this);
        // actionAuditFail
        this.actionAuditFail = (ActionAuditFail)com.kingdee.bos.waf.action.WebActionFactory
				.createWebAction("actionAuditFail", ActionAuditFail.class,getServiceContext());
		this.actionAuditFail.setBaseBean(this);
        // actionSetAuditing
        this.actionSetAuditing = (ActionSetAuditing)com.kingdee.bos.waf.action.WebActionFactory
				.createWebAction("actionSetAuditing", ActionSetAuditing.class,getServiceContext());
		this.actionSetAuditing.setBaseBean(this);
        // actionCloseBill
        this.actionCloseBill = (ActionCloseBill)com.kingdee.bos.waf.action.WebActionFactory
				.createWebAction("actionCloseBill", ActionCloseBill.class,getServiceContext());
		this.actionCloseBill.setBaseBean(this);
	}
		
	
	@Override
	protected String getEditBeanName() {
    	
    	return "custom.aoyuan.aytime.bizbill.OTBillEditUIBean";
    	
	}

	@Override
	protected String getEditUrl() {
		
    	return "/custom/aoyuan/aytime/bizbill/oTBillEditUI.jsf";
    	
	}

	@Override
	protected ICoreBase getBizInterface() {
		return service;
	}
	
	@Override
	public IMetaDataPK getMetaDataPK() {
		return new MetaDataPK("com.kingdee.eas.custom.aoyuan.aytime.bizbill.web.OTBillListUI");
	}

	@Override
	protected IMetaDataPK getQueryPK() {
		return new MetaDataPK("com.kingdee.eas.custom.aoyuan.aytime.bizbill.app.OTBillQuery");
	}
	
	@Override
	protected String getEntryPKName() {
	
				return "entrys.id";
	
	}
	
	protected void actionAuditPass_actionPerformed(ActionEvent event) throws AbortProcessingException {
	}
	protected void actionAuditFail_actionPerformed(ActionEvent event) throws AbortProcessingException {
	}
	protected void actionSetAuditing_actionPerformed(ActionEvent event) throws AbortProcessingException {
	}
	protected void actionCloseBill_actionPerformed(ActionEvent event) throws AbortProcessingException {
	}	
	public static class ActionAuditPass extends AbstractWebAction {
		private BaseBean baseBean;

		public BaseBean getBaseBean() {
			return baseBean;
		}
	
		public void setBaseBean(BaseBean baseBean) {
			this.baseBean = baseBean;
		}
		@Override
		public void processAction(ActionEvent event) throws AbortProcessingException {
			try {
				((AbstractOTBillListUIBean)baseBean).actionAuditPass_actionPerformed(event);
			} catch (Exception e) {
				e.printStackTrace();
				throw new AbortProcessingException(e);
			}
		}
	}
	public static class ActionAuditFail extends AbstractWebAction {
		private BaseBean baseBean;

		public BaseBean getBaseBean() {
			return baseBean;
		}
	
		public void setBaseBean(BaseBean baseBean) {
			this.baseBean = baseBean;
		}
		@Override
		public void processAction(ActionEvent event) throws AbortProcessingException {
			try {
				((AbstractOTBillListUIBean)baseBean).actionAuditFail_actionPerformed(event);
			} catch (Exception e) {
				e.printStackTrace();
				throw new AbortProcessingException(e);
			}
		}
	}
	public static class ActionSetAuditing extends AbstractWebAction {
		private BaseBean baseBean;

		public BaseBean getBaseBean() {
			return baseBean;
		}
	
		public void setBaseBean(BaseBean baseBean) {
			this.baseBean = baseBean;
		}
		@Override
		public void processAction(ActionEvent event) throws AbortProcessingException {
			try {
				((AbstractOTBillListUIBean)baseBean).actionSetAuditing_actionPerformed(event);
			} catch (Exception e) {
				e.printStackTrace();
				throw new AbortProcessingException(e);
			}
		}
	}
	public static class ActionCloseBill extends AbstractWebAction {
		private BaseBean baseBean;

		public BaseBean getBaseBean() {
			return baseBean;
		}
	
		public void setBaseBean(BaseBean baseBean) {
			this.baseBean = baseBean;
		}
		@Override
		public void processAction(ActionEvent event) throws AbortProcessingException {
			try {
				((AbstractOTBillListUIBean)baseBean).actionCloseBill_actionPerformed(event);
			} catch (Exception e) {
				e.printStackTrace();
				throw new AbortProcessingException(e);
			}
		}
	}	
}

